package com.nix.web.databases.service.word.emotion;

import com.nix.web.databases.mapper.word.emtion.EmtionMapper;
import com.nix.web.databases.pojo.word.emtion.Emtion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * Title: Emotional-Analysis
 * Date: Create in 2018/2/10 12:15
 * Description:
 *
 * @author Jundger
 * @version 1.0
 */
@Service
public class EmotionService implements EmtionMapper{

    @Autowired
    EmtionMapper emtionMapper;

    @Override
    public ArrayList<Emtion> getAllEmotion() throws Exception {
        ArrayList<Emtion> list ;
        list = emtionMapper.getAllEmotion();

        return list;
    }

    @Override
    public boolean add(Emtion emtion) throws Exception {
        return false;
    }

    @Override
    public boolean delete(Integer id) throws Exception {
        return false;
    }

    @Override
    public boolean update(Emtion emtion) throws Exception {
        return false;
    }

    @Override
    public Emtion select(Integer id) throws Exception {
        return null;
    }
}
